<?php

class McCube_Template_Parser_Element_Command_Foreach
    extends McCube_Template_Parser_Element_Command_Abstract{

    public function buildStart($inTag){
        return parent::buildPhpTag('foreach('.$inTag.'):');
    }

    public function buildEnd(){
        return parent::buildPhpTag('endforeach;');
    }

    public function build($inTag, $content){
        return $this-> buildStart($inTag)
            .$content
            .$this-> buildEnd()
        ;
    }
}